const
    backgroundImageUrl = document.querySelector('.userBackground'),
    mainScreen = document.querySelector('.pre-main');


const url = (backgroundImageUrl.innerHTML).toString()
const url2 = url.split('media')[1]
const image = `url("/media${url2}")`

mainScreen.style.backgroundImage = image
mainScreen.style.backgroundRepeat = 'no-repeat'
mainScreen.style.backgroundSize = 'cover'